<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">  
	<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
	
  </head>
  
  <body>
  <%
  	String[] hobbies = request.getParameterValues("hobby");
  	String hbs = "";
  	if(hobbies != null){
  		for(String hb : hobbies){
  	  		hbs += hb + " ";
  	  	}
  	}
  %>
  <div class="container">
  
    <table class="table" align="center">
    	<tr>
    		<th>姓名</th>
    		<th>口令</th>
    		<th>性别</th>
    		<th>出生日期</th>
    		<th>专业</th>
    		<th>爱好</th>
    		<th>其他</th>
    	</tr>
    	<tr>
    		<td>
    			<%=request.getParameter("username") %>
    		</td>
    		
    		<td>
    			<%=request.getParameter("password") %>
    		</td>
    			
    		<td>
    			<%=request.getParameter("sex") %>
    		</td>
    		<td>
    			<%=request.getParameter("birthday") %>
    		</td>
    		<td>
    			<%=request.getParameter("major") %>
    		</td>
    		<td>
    			<%= hbs%>
    		</td>
    		<td>
    			<%=request.getParameter("other") %>
    		</td>
    	</tr>
    	
    </table>
   </div>
  </body>
</html>
